﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Protocol
{
    /// <summary>
    /// 命令类型
    /// </summary>
    public enum ECommandType
    {
        None,
        Idle,
        Move,
        Jump,
        Skill
    }


    /// <summary>
    /// 技能按钮类型
    /// </summary>
    public enum ESkillButtonType
    {
        None,
        NormalAtkBtn,
        SkillAtkBtn,
        DodgeBtn,
        HurtBtn,
    }


    /// <summary>
    /// 输入类型
    /// </summary>
    public enum EInputType
    {
        None,
        Weak,
        Strong,
        Jump
    }
    /// <summary>
    /// 按键状态
    /// </summary>
    public enum EInputStatus
    {
        None = 0,
        Click = 1,
        HoldOn,
        NotNeed //不需要输入
    }
    /// <summary>
    /// 输入命令
    /// </summary>
    public struct InputCommand
    {
        public int PlayerId;                    // 玩家ID
        public float XAxis;                       //x轴
        public float YAxis;                       //y轴
        public EInputType InputType;            // 按钮类型
        public EInputStatus InputStatus;        //技能按钮状态
    }
}
